import request from "@/utils/request";

// 查询福利津贴列表
export function listWelfare(query) {
  return request({
    url: "/cld/welfare/list",
    method: "get",
    params: query,
  });
}

// 查询福利津贴列表
export function getListWelfare(query) {
  return request({
    url: "/cld/welfare/getList",
    method: "get",
    params: query,
  });
}

// 查询福利津贴详细
export function getWelfare(walfareId) {
  return request({
    url: "/cld/welfare/" + walfareId,
    method: "get",
  });
}

// 新增福利津贴
export function addWelfare(data) {
  return request({
    url: "/cld/welfare",
    method: "post",
    data: data,
  });
}

// 修改福利津贴
export function updateWelfare(data) {
  return request({
    url: "/cld/welfare",
    method: "put",
    data: data,
  });
}

// 删除福利津贴
export function delWelfare(walfareId) {
  return request({
    url: "/cld/welfare/" + walfareId,
    method: "delete",
  });
}
